package factory.demo;

import factory.abs.FactoryBuilder;
import factory.color.Color;
import factory.produce.FactoryProduce;

public class Test {
    public static void main(String[] args) {
        FactoryBuilder colorFactory = FactoryProduce.getFactory("color");
        Color color = colorFactory.getColor("red");
        color.fill();
    }
}
